package com.java46.carera.base.mapper;

import com.java46.carera.base.entity.ReservationRecord;
import org.springframework.stereotype.Repository;

import java.util.List;
/*/**
 * @Author
 * @Description 预约mapper
 * @Date 18:20 2018/8/22
 * @Param
 * @return
 */

@Repository
public interface ReservationRecordMapper {
    /**
     * 删除预约记录
     * @param resid
     * @return
     */
    int deleteByPrimaryKey(Integer resid);

    /**
     * 添加预约记录
     * @param record
     * @return
     */
    int insert(ReservationRecord record);

    /**
     * 根据编号查看预约记录
     * @param resid
     * @return
     */
    ReservationRecord selectByPrimaryKey(Integer resid);

    /**
     * 查看所有预约记录
     * @return
     */
    List<ReservationRecord> selectAll(String keyword);

    /**
     * 修改预约记录
     * @param record
     * @return
     */
    int updateByPrimaryKey(ReservationRecord record);

    /**
     * 修改预约处理状态
     * @param resid
     * @return
     */
    int updateByStatus(Integer resid);
}